<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div class="modal-dialog ms-modal-dialog" style="width: 550px;">
  <div class="modal-content">

    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
      <h4 class="modal-title">修改车队信息</h4>
    </div>

    <form class="form-horizontal ms-form form-personal-info" method="POST" action="${ctx.host}/teams/${team.id}">

      <input type="hidden" name="_method" value="PATCH"/>

      <input type="hidden" name="teamId" value="${team.id}"/>
      
      <div class="modal-body">
      
        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3">车队代码：</label>
          <div class="col-xs-8 pull-left">
            <input type="text" class="form-control" name="code" value="${team.code}" placeholder="车队代码" data-validate="required" tabindex="1" autocomplete="off"/>
          </div>
        </div>

        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3">车队名称：</label>
          <div class="col-xs-8 pull-left">
            <input type="text" class="form-control" name="name" value="${team.name}" placeholder="车队名称" data-validate="required" tabindex="2" autocomplete="off"/>
          </div>
        </div>

        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3">电话号码：</label>
          <div class="col-xs-8">
            <input type="text" class="form-control" name="tel" value="${team.tel}" placeholder="电话号码" tabindex="3" autocomplete="off"/>
          </div>
        </div>

        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3">传真号码：</label>
          <div class="col-xs-8">
            <input type="text" class="form-control" name="fax" value="${team.fax}" placeholder="传真号码" tabindex="4" autocomplete="off"/>
          </div>
        </div>

        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3">部门负责人：</label>
          <div class="col-xs-8">
            <input type="text" class="form-control" name="principalName" value="${team.principalName}" placeholder="部门负责人" tabindex="5" autocomplete="off"/>
          </div>
        </div>

      </div>
      
      <div class="modal-footer ms-modal-footer">
        <button type="submit" class="btn ms-btn btn-primary btn-submit">确定</button>
        <button type="button" class="btn ms-btn ms-btn-gary" data-dismiss="modal">取消</button>
      </div>

    </form>

  </div>
</div>